/**
 * 我的页面
 */
	var mine = {
		
		/**
		 * 绑定点击事件
		 * 
		 */
		bindEvent : function() {
			$(".next-operation").unbind().on("click", function () {
				summer.closeWin();
			});
			// 点击返回
			$("#mineReturn").unbind().on("click", function() {
				//返回
				window.location.href = "#home";
			});
			//我的收藏
			$("#myCollectionHeader").unbind().on("click", function() {
				mine.loadPageData("collectList");
				$("#myCollectionTab").attr("class","product-down tabColor");
				$("#myAttachmentTab").attr("class","product-down");
			});
			//我的附件
			$("#myAttachmentHeader").unbind().on("click", function() {
				mine.loadPageData("attachmentList");
				$("#myCollectionTab").attr("class","product-down");
				$("#myAttachmentTab").attr("class","product-down tabColor");
			});
		},
		/**
		 * 进行页面路由监听配置，覆盖首页设置的路由
		 * 
		 */
		bindRout : function(){
			//首页
			Path.map("#home").to(function () {
				//记录状态
				common.loadPageDiv("html/index.html",false,true);
			});			
			Path.listen();
		},
		/**
		 *加载模板页面
		 */
	    loadPageData:function(pageId){
			$("#myCollectionContent").load("html/"+pageId+".html", function(){
				//动态加载JS
				common.loadPageJSAndInit(pageId,"?version=" + common.version,pageId);
			});
		},
	    /**
	     * each page
	     */
	    initialize:function(){
			mine.bindEvent();// 绑定事件
            mine.bindRout();// 绑定路由
			//默认加载我的收藏
			mine.loadPageData("collectList");
			$("#myCollectionTab").attr("class","product-down tabColor");
	    }

	};
	